package com.doctcloud.hisinfo.inpadm.controller;

import com.doctcloud.common.core.domain.R;
import com.doctcloud.hisinfo.histable.domain.inpadm.PatsInHospitalDo;
import com.doctcloud.hisinfo.inpadm.service.IPatsInHospitalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/inpadm")
public class PatsInHospitalController {
    @Autowired
    private IPatsInHospitalService patsInHospitalService;
    @GetMapping("/patsinhospital/all")
    private R<List<PatsInHospitalDo>> listAll(){
        return patsInHospitalService.listAll();
    }
}
